
SET( LUA_MATH_EX_H config.h luaMathExUI.h
			luaInterpolation.h)
SET( LUA_MATH_EX_UI_SRC ./LUA/luaMathExUI.cpp)
SET( LUA_MATH_EX_SRC   ./src/luaInterpolation.cpp)

INCLUDE_DIRECTORIES(  ${LUAEx_SOURCE_DIR} )
##INCLUDE_DIRECTORIES(  ${TOLUA++_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${LUA_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${Boost_INCLUDE_DIR} )
message( STATUS "PARSERS boost:${Boost_INCLUDE_DIR}")

SOURCE_GROUP(LUA FILES ${LUA_MATH_EX_H} ${LUA_MATH_EX_SRC})
SOURCE_GROUP(EXC FILES ${LUA_MATH_EX_SRC})

set(LUA_MATH_EX_ALLFILES ${LUA_MATH_EX_H} ${LUA_MATH_EX_UI_SRC} ${LUA_MATH_EX_SRC})

if(LUA_MATH_EX_STATIC_LIB)
	ADD_LIBRARY(luaMathEx STATIC ${LUA_MATH_EX_ALLFILES})
else(LUA_MATH_EX_STATIC_LIB)
	ADD_LIBRARY(luaMathEx SHARED ${LUA_MATH_EX_ALLFILES})
    if(WIN32)
        add_definitions( -DLUA_MATH_EX_DLL )
    endif(WIN32)
endif(LUA_MATH_EX_STATIC_LIB)


add_definitions(-DUNICODE -D_UNICODE)

if(WIN32 OR APPLE)
    target_link_libraries(luaMathEx ${TOLUA++_LIBRARY} )
    target_link_libraries(luaMathEx ${LUA_LIBRARY} )
endif()

SET_TARGET_PROPERTIES(luaMathEx PROPERTIES PREFIX "")
collect_library(luaMathEx)
